home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_01_01
/
1n01078b
< prev
next >
Wrap
Text File
|
1990-05-16
|
275b
|
19 lines
#include "stdio.h"
int addup(int * a, int b);
int main()
{
int x = 1, y = 2, z = 0;
z = addup(&x,y);
printf("x = %d, y = %d, z = %d",x,y,z);
return 0;
}
int addup(int * a, int b)
{
*a += b;
return *a;
}